Skip to content

Preserve a first-position device-tree resource - #74

Merged
QuiteYellow merged 1 commit into
QuiteYellow:mainfrom
Moballo-LLC:codex/index-device-tree-first-resource
Sep 6, 2026
Merged

Preserve a first-position device-tree resource#74
QuiteYellow merged 1 commit into
QuiteYellow:mainfrom
Moballo-LLC:codex/index-device-tree-first-resource

Conversation

@Jason-Morcos

Copy link
Copy Markdown
Contributor

Summary

  • inspect every href-bearing entry in a /device/0 batch
  • continue excluding the /device/0 container representation itself
  • cover a batch where /information/vs/0 is the first entry

Why

StateCache.index_device_tree() currently drops position zero unconditionally. Some batch layouts put an ordinary resource there rather than the device container, which causes that complete representation to disappear from the indexed sweep. The href identifies the container reliably; its position does not.

Validation

  • 677 SmartThings-Local tests
  • 1,834 LocalThings tests against this branch
  • wheel and sdist content validation
  • share-safety scan

@QuiteYellow
QuiteYellow merged commit ca09cd0 into QuiteYellow:main Sep 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants